package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisListHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_expert_outcome", autoResultMap = true)
public class ExpertOutcomeDO extends  BaseDO{
    private  String entName;
    private  String productName;
    private  int onlineReview;
    private  String productNumber;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="product_image", type = FieldType.Text, analyzer="ik_max_word")
    private List<String> productImage;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="keyword", type = FieldType.Text, analyzer="ik_max_word")
    private  List<String>  keyword;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="outcome_file", type = FieldType.Text, analyzer="ik_max_word")
    private  List<String> outcomeFile;
}
